﻿using System;
using System.ComponentModel.DataAnnotations;

namespace ClientSite2nd.Models
{
    public class Client
    {
        [Display(Name = "Client Id")]
        public Guid Id { get; set; }

        [Required]
        [Display(Name = "Nickname")]
        public string UserName { get; set; }

        [Required]
        [Display(Name = "Company")]
        public string Company { get; set; }
        
        [Display(Name = "First Name")]
        public string FirstName { get; set; }

        [Display(Name = "Last Name")]
        public string LastName { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        [Display(Name = "Email")]
        public string Email { get; set; }

        [DataType(DataType.Date)]
        [Display(Name = "Date of birth")]
        public DateTime? BirthdayDate { get; set; }

        [Display(Name = "Address")]
        public string Address { get; set; }

        [DataType(DataType.Upload)]
        [Display(Name = "Picture")]
        public byte[] ProfilePicture { get; set; }
    }
}